package com.example.movie.mate.pojo.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@Schema(description = "新增电影参数Class")
public class MovieAddNewParam implements Serializable {

    /**
     * 电影名称
     */
    @Schema(description = "电影名称", example = "肖申克的救赎", required = true)
    private String name;

    /**
     * 电影时长（分钟）
     */
    @Schema(description = "电影时长（分钟）", example = "142", required = true)
    private Integer duration;

    /**
     * 电影上映日期
     */
    @Schema(description = "电影上映日期", example = "2023-09-01", required = true)
    private LocalDate releaseDate;

    /**
     * 电影简介
     */
    @Schema(description = "电影简介", example = "讲述了银行家安迪因被误判为枪杀妻子及其情人的罪名入狱后，与狱友瑞德建立了友谊，并通过挖地道的方式越狱的故事。", required = false)
    private String description;

    /**
     * 电影封面图URL
     */
    @Schema(description = "电影封面图URL", example = "https://example.com/images/shawshank_redemption.jpg", required = false)
    private String imageUrl;

}